package sw6.lib.exceptions;

public class SettingNotFoundException extends IllegalArgumentException {

	private static final long serialVersionUID = 1L;
	private static final String APP_VAR_NAME_COMBI_NOT_FOUND = "Application and variablename combination " +
	"does not exist in the administration database. Please check if the requested setting has been declared " +
	"in your applications settings file.";

	public SettingNotFoundException(String appName, String varName, String dataType)	{
		super("Setting: " + varName + " of type: " + dataType + " for app: " + appName + ". " + APP_VAR_NAME_COMBI_NOT_FOUND);
	}

	public SettingNotFoundException(String appName, String varName) {
		super("Setting: " + varName + " for app: " + appName + ", could not be updated. " + APP_VAR_NAME_COMBI_NOT_FOUND);
	}
}
